package me.sealer.java8.lambda.utils;

import me.sealer.java8.lambda.io.BufferedReaderProcessor;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * Created by sealer on 09-17-2017.
 */
public class IOUtil {
    public static String processFile(String filePath, BufferedReaderProcessor brp) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader(filePath));
        return brp.process(br);
    }
}
